<?php
/*
 * Created on 2011-5-11
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 require('petClass.php');
 
 class tagUser
 {
 	//man
 	public $userID;
 	public $userName;
 	public $sex;
 	
 	//pet
 	public $petSex;
 	public $pet;
 	
 	public function __construct()
 	{
 		
 	}
 	//free memory
 	public function free()
 	{
 		unset($pet);
 	}
 	
 	//load from db
 	public function LoadFromDB()
 	{
 		$petSex = 0;
 		if($petSex == 0)
 			$pet = new tagPetFemale();
 		else
 			$pet = new tagPetMale();
 	}
 	
 	//update db
 	public function UpdateDB()
 	{
 		
 	}
 }
?>
